package org.wanghong.basic.mapper;

import org.wanghong.basic.query.BaseQuery;


import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T> {
    void save(T t);

    void update(T t);

    void remove(Serializable id);

    T loadById(Serializable id);

    List<T> loadAll();

    long loadCount(BaseQuery query);

    List<T> loadData(BaseQuery query);
}
